/**
 * Copyright 2011 Joe Choi, All rights reserved.
 */
package tec.data.persistence;

import tao.data.persistence.Record;

/**
 * @author Joe Choi
 */
public interface RecordBuffer {
	public void first();
	public void last();
	public boolean hasNext();
	public Record next();
	public boolean hasPrevious();
	public Record previous();
	public int size();
	
	/**
	 * Set the number of tuples fetched from the data source each time.
	 */
	public void setFetchSize(int size);
	
	/**
	 * Get the number of tuples fetched from the data source each time.
	 */
	public int getFetchSize();
}